/**
 * 网站主页轮播图
 * 
 */
// ***************	网站首页 begin	***************	//
if(_EsdDynamicTransformationScript.isSiteIndexPage){

	
	var part_First = function(){
	
	//轮播前的标签
	_EsdDynamicTransformationScript.esdRotationAgriPartOneFrontNum1 = $("body > div.navBlock > a");

	//文字A标签
	_EsdDynamicTransformationScript.esdRotationAgriPartOneANum1 = $('.index_new_box li:eq(1) a:eq(1)');
	_EsdDynamicTransformationScript.esdRotationAgriPartOneANum2 = $('.index_new_box li:eq(2) a:eq(1)');
	_EsdDynamicTransformationScript.esdRotationAgriPartOneANum3 = $('.index_new_box li:eq(3) a:eq(1)');
	_EsdDynamicTransformationScript.esdRotationAgriPartOneANum4 = $('.index_new_box li:eq(4) a:eq(1)');
	
	_EsdDynamicTransformationScript.esdRotationAgriPartOneANum5 = $('.index_new_more a:first');	// 更多按钮

	//原点
	_EsdDynamicTransformationScript.esdRotationAgriPartOneCircleNum1 = $('.index_new_dbox li:eq(0)');
	_EsdDynamicTransformationScript.esdRotationAgriPartOneCircleNum2 = $('.index_new_dbox li:eq(1)');
	_EsdDynamicTransformationScript.esdRotationAgriPartOneCircleNum3 = $('.index_new_dbox li:eq(2)');
	_EsdDynamicTransformationScript.esdRotationAgriPartOneCircleNum4 = $('.index_new_dbox li:eq(2)');

	//轮播后的标签
	_EsdDynamicTransformationScript.esdRotationAgriPartOneAfterNum1 = $(".nr_box .index_box .index_line1 .index_zwgk_box .index_zwgk_top a");

	//轮播前的焦点
	_EsdDynamicTransformationScript.esdRotationAgriPartOneFrontNum1.focus(function (e) {
		$(this).bind("keydown.keydown_0_0", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				$(this).unbind("keydown.keydown_0_0");
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationAgriPartOneCircleNum1.click();
				_EsdDynamicTransformationScript.esdRotationAgriPartOneANum1.focus();
				$(this).unbind("keydown.keydown_0_0");
				return false;
			}
		});
	});

	// 轮播图 第1个tab
	_EsdDynamicTransformationScript.esdRotationAgriPartOneANum1.focus(function (e) {
		$(this).bind("keydown.keydown_0_1", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationAgriPartOneFrontNum1.focus();
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationAgriPartOneCircleNum2.click();
				_EsdDynamicTransformationScript.esdRotationAgriPartOneANum2.focus();
			}
			$(this).unbind("keydown.keydown_0_1");
			return false;
		});
	});

	// 轮播图 第2个tab
	_EsdDynamicTransformationScript.esdRotationAgriPartOneANum2.focus(function (e) {
		$(this).bind("keydown.keydown_0_2", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationAgriPartOneCircleNum1.click();
				_EsdDynamicTransformationScript.esdRotationAgriPartOneANum1.focus();
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationAgriPartOneCircleNum3.click();
				_EsdDynamicTransformationScript.esdRotationAgriPartOneANum3.focus();
			}
			$(this).unbind("keydown.keydown_0_2");
			return false;
		});
	});

	// 轮播图 第3个tab
	_EsdDynamicTransformationScript.esdRotationAgriPartOneANum3.focus(function (e) {
		$(this).bind("keydown.keydown_0_3", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationAgriPartOneCircleNum2.click();
				_EsdDynamicTransformationScript.esdRotationAgriPartOneANum2.focus();
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationAgriPartOneCircleNum4.click();
				_EsdDynamicTransformationScript.esdRotationAgriPartOneANum4.focus();
			}
			$(this).unbind("keydown.keydown_0_3");
			return false;
		});
	});

	// 轮播图 第4个tab
	_EsdDynamicTransformationScript.esdRotationAgriPartOneANum4.focus(function (e) {
		$(this).bind("keydown.keydown_0_4", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationAgriPartOneCircleNum3.click();
				_EsdDynamicTransformationScript.esdRotationAgriPartOneANum3.focus();
			}else if (e.keyCode == 9) {
				_EsdDynamicTransformationScript.esdRotationAgriPartOneANum5.focus();
			}
			$(this).unbind("keydown.keydown_0_4");
			return false;
		});
	});

	// 轮播图 最后一个更多
	_EsdDynamicTransformationScript.esdRotationAgriPartOneANum5.focus(function (e) {
		$(this).bind("keydown.keydown_0_5", function (e) {
			if(e.shiftKey&&e.keyCode==9){
				_EsdDynamicTransformationScript.esdRotationAgriPartOneCircleNum4.click();
				_EsdDynamicTransformationScript.esdRotationAgriPartOneANum4.focus();
			}else if (e.keyCode == 9) {
				//政务公开的更多
				_EsdDynamicTransformationScript.esdTabAgriPartOnethPre.focus();
			}
			$(this).unbind("keydown.keydown_0_5");
			return false;
		});
	});
	
	
	
	}

}
//***************	网站首页 end	***************	//